package com.homeproject.trailservice.domain;


import lombok.*;
import org.neo4j.ogm.annotation.NodeEntity;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;

import java.util.Date;

/**
 * Within a community group purchase, there are following entities and relationships
 *
 * Customer - submit -> SubOrder
 * GroupManager - Initiate -> Order
 * Fruit - PartOf -> SubOrder
 * Vegetable - PartOf -> SubOrder
 * SubOrder -> ChildOf -> Order
 * Provider - Prepare -> Order
 * Deliverer - Deliver -> Order
 * Deliverer - WorksFor -> DeliveryCompany
 * */

@NodeEntity(label = "SubOrder")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@Setter
@Data
public class SubOrder {
    @Id
    @GeneratedValue
    protected long id;

    private int price;
}
